package com.yfqy.app.modules.order.dto;

import com.yfqy.app.enums.RefundReason;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

/**
 * 订单申请退款
 */
@Data
public class RefundApplyRequest {

    /**
     * orderId
     */
    @NotNull(message = "订单id不能为空")
    private Long orderId;

    /**
     * @see RefundReason
     */
    @NotNull(message = "退款原因不能为空")
    private Byte refundReason;

    @NotEmpty(message = "退款商品不能为空")
    private List<Long> orderItemIds;

    private List<String> images;

    private String remark;

}
